#pragma once
#include <iostream>
using namespace std;
#include<vector>
#include<functional>

namespace bit

{

    template<class T>
    class myless
    {
    public:
        bool operator<(myless& it)
        {
            return _it < it._it;
        }
    public:
        T _it;
    };

    template <class T, class Container = vector<T>, class Compare = less<T> >
    class priority_queue

    {

    public:

        priority_queue()
        {
            ;
        }

        template <class InputIterator>
        priority_queue(InputIterator first, InputIterator last)
            :c(first,last)
        {
            
        }

        bool empty() const
        {
            return c.empty();
        }

        size_t size() const
        {
            return c.size();
        }

        const T& top() const
        {
            return c.front();
        }

        void push(const T& x)
        {
            c.push_back(x);
        }

        void pop()
        {
            c.erase(c.begin());
        }

    private:

        Container c;

        Compare comp;

    };

};
